{*
%%%copyright%%%
 * phpMyTicket - ticket reservation system
 * Copyright (C) 2004-2005 Anna Putrino, Stanislav Chachkov. All rights reserved.
 *
 * This file is part of phpMyTicket.
 *
 * This file may be distributed and/or modified under the terms of the
 * "GNU General Public License" version 2 as published by the Free
 * Software Foundation and appearing in the file LICENSE included in
 * the packaging of this file.
 *
 * Licencees holding a valid "phpmyticket professional licence" version 1
 * may use this file in accordance with the "phpmyticket professional licence"
 * version 1 Agreement provided with the Software.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE.
 *
 * The "phpmyticket professional licence" version 1 is available at
 * http://www.phpmyticket.com/ and in the file
 * PROFESSIONAL_LICENCE included in the packaging of this file.
 * For pricing of this licence please contact us via e-mail to 
 * info@phpmyticket.com.
 * Further contact information is available at http://www.phpmyticket.com/
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
 *
 * Contact info@phpmyticket.com if any conditions of this licencing isn't 
 * clear to you.
 
 *}{include file="header.tpl"}

{if $smarty.post.order_id gt 0}
{order->order_list order_id=$smarty.post.order_id user=on length=1}
{if $shop_order.order_payment_status eq 'none'}

{handling handling_id=$shop_order.order_handling_id pm_exec="on_cc_submit"}
<div class="div_midtone">
<table class="table_midtone">
    {if $shop_handling.pm_return.approved}
         <tr><td class="title">{#pay_ref#}<br><br></td></tr>
		 <tr><td>
		 {#pay_reg#}!<br>
		 {#order_id#}
		  <b>{$shop_order.order_id}</b>
          </td></tr>
		{else}
		
          <tr><td class="title">
					{#pay_refused#}
					</td></tr>		
		  <tr><td>
			
			{if $shop_handling.pm_return.err.cc_name}
			<div class='error'>{#invalid_name#}</div>
			{/if}
			{if $shop_handling.pm_return.err.cc_date}
			<div class='error'>{#invalid_date#}</div>
			{/if}
			{if $shop_handling.pm_return.err.cc_number}
			<div class='error'>{#invalid_number#}</div>
			{/if}
			{if $shop_handling.pm_return.err.cc_store}
			<div class='error'>{#cannot_store#}</div>
			{/if}
			{if $shop_handling.pm_return.err.cc_store}
			<div class='error'>{#cannot_seal#}</div>
			{/if}			
			</td></tr>
            <tr><td>
			{eval var=$shop_handling.handling_html_template}</td></tr>

		{/if}
</table></div>
  {/handling}
	{/if}
{/order->order_list}
{/if}
{include file="footer.tpl"}


